<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table {
            border: 1px solid #000;
        }
        td {
            border: 1px solid #000;
        }
    </style>
</head>

<body>
    <h1>请选择你的登录方式</h1>
    <div id="app">
        <router-link to="/passward">账号名密码</router-link>
        <router-link to="/erweima">二维码</router-link>

        <router-view></router-view>
    </div>

    <template id="biaoge">
        <div>
            <h3>注册信息
                <table>
                    <tr>
                        <td>用户名</td>
                        <td><input type="text"></td>
                    </tr>
                    <tr>
                        <td>密码</td>
                        <td><input type="text"></td>
                    </tr>
                    <tr>
                        <td>重复密码</td>
                        <td><input type="text"></td>
                    </tr>
                    <tr>
                        <td>验证码</td>
                        <td><input type="text"></td>
                    </tr>
                    <tr>
                        <td>注册新用户</td>
                    </tr>
                </table>
        </div>
    </template>
    <template id="tupian">
        <div>
            <img src="./char.jpg" alt="">
        </div>
    </template>
</body>
<script src="./vue.js"></script>
<script src="./vue-router.js"></script>
<script>
    let passward = {
        template: "#biaoge"

    }

    let erweima = {
        template: "#tupian ",
    }

    const routerObj = new VueRouter({
        routes: [
            { path: "/passward", name: "passward", component: passward },
            { path: "/erweima", name: "erweima", component: erweima },
        ]
    })
    let vm = new Vue({
        el: "#app",
        router: routerObj
    })
</script>

</html>